package com.example.backend.dto;

import jakarta.validation.constraints.*;
import lombok.Data;

/**
 * 用户登录请求DTO
 */
@Data
public class LoginRequest {
    
    @NotBlank(message = "用户名不能为空")
    @Size(min = 3, max = 20, message = "用户名长度必须在3-20个字符之间")
    private String username;
    
    @NotBlank(message = "密码不能为空")
    @Size(min = 3, max = 50, message = "密码长度必须在3-50个字符之间")
    private String password;
    
    private Boolean rememberMe = false;
}